package com.thread;

import lombok.extern.slf4j.Slf4j;

/**
 * 使用Runnable创建线程
 */
@Slf4j(topic = "c.Test2")
public class RunnableDemo1 {
    public static void main(String[] args) {
        Runnable r= () -> log.debug("running runnable");



        Thread t=new Thread(r,"t2");
        t.start();
        log.debug("running main");
    }
}
